import { Meta, ArgsTable, Canvas, Story, Markdown } from '@storybook/addon-docs';
import { Progress } from '@zendeskgarden/react-loaders';
import README from '../README.md';

<Meta title="Packages/Loaders/Progress" component={Progress} />

# API

<ArgsTable />

# Demo

<Canvas>
  <Story
    name="Progress"
    argTypes={{
      color: { control: 'color' },
      value: { control: { type: 'range', min: 0, max: 100 } }
    }}
    args={{
      'aria-label': 'Label',
      value: 0
    }}
    parameters={{
      design: {
        allowFullscreen: true,
        type: 'figma',
        url: 'https://www.figma.com/file/6g87L4FdKZTA3knt3Rsfdx/Garden?node-id=175%3A144'
      }
    }}
  >
    {args => <Progress {...args} />}
  </Story>
</Canvas>

<Markdown>{README}</Markdown>
